HAL CRC types migration ¶
This section provides information about the HAL CRC types migration .
HAL CRC state type definition ¶
In HAL2,
HAL_CRC_STATE_TIMEOUT
and
HAL_CRC_STATE_ERROR
have been removed.
|
HAL1 |
HAL2 |
|---|---|
typedef enum
{
HAL_CRC_STATE_RESET,
HAL_CRC_STATE_READY,
HAL_CRC_STATE_BUSY,
HAL_CRC_STATE_TIMEOUT,
HAL_CRC_STATE_ERROR
} HAL_CRC_StateTypeDef;
|
typedef enum
{
HAL_CRC_STATE_RESET,
HAL_CRC_STATE_IDLE,
HAL_CRC_STATE_ACTIVE
} hal_crc_state_t;
|
Related concepts:
HAL CRC initialization type definition ¶
|
HAL1 |
HAL2 |
|---|---|
typedef struct
{
uint8_t DefaultPolynomialUse;
uint8_t DefaultInitValueUse;
uint32_t GeneratingPolynomial;
uint32_t CRCLength;
uint32_t InitValue;
uint32_t InputDataInversionMode;
uint32_t OutputDataInversionMode;
} CRC_InitTypeDef;
|
typedef struct
{
/* If using defaults, configuration isn't required */
/* If using defaults, configuration isn't required */
uint32_t polynomial_coefficient;
hal_crc_polynomial_size_t polynomial_size;
uint32_t crc_init_value;
hal_crc_input_data_reverse_mode_t input_data_reverse_mode;
hal_crc_output_data_reverse_mode_t output_data_reverse_mode;
} hal_crc_config_t;
|
Related concepts:
HAL CRC handle type definition ¶
|
HAL1 |
HAL2 |
|---|---|
CRC_HandleTypeDef
|
hal_crc_handle_t;
|
Related concepts: